package com.cloud.pole.shop.model.entity.goods;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.validator.constraints.NotEmpty;

import lombok.Data;

/**
 * @author 
 */
@Table(name="shop_goods_promotion")
@Data
public class ShopGoodsPromotion implements Serializable {
    /**
     * 促销ID
     */
	@Id
    private Integer promotionId;

    /**
     * 开始时间
     */
    private Date startTime;

    /**
     * 结束时间
     */
    private Date endTime;

    /**
     * 商品ID
     */
    private Integer goodsId;

    /**
     * 商品规格ID
     */
    @NotEmpty
    private Integer goodsSpceId;

    /**
     * 排序
     */
    private Integer dispOrder;

    /**
     * 促销版块
     */
    private String promotionType;
    
    /**
     * 创建时间
     */
    private Date createTime;
    
    /**
     * 商家Id
     */
    private Integer merchantId;

    /**
     * 店铺id
     */
    private Integer shopId;
    
    /**
       * 推广产品图片
     */
    private String promotionImage;
    
    private Integer componentId;
    
    private Integer indexRecommNum;
    //商品名
    private String name;

    private static final long serialVersionUID = 1L;
}